import cv2

img = cv2.imread("img/Lena.jpg")
logo = cv2.imread("img/csdn.jpg")

rows, cols, channel = logo.shape
logo1 = cv2.resize(logo, (round(cols * 0.5), round(rows * 0.5)))

img[470:500, 400:500] = logo1

# cv2.imshow("2", logo1)
# cv2.imshow("Lena", img)
# cv2.waitKey(0)
# cv2.destroyAllWindows()

cv2.imwrite("./LC.jpg", img)
